package com.project.dynaProxy;

public class Test {
    public static void main(String[] args) {
        ProxyFactory factory = new ProxyFactory(new BossChen());
        //得到代理对象
        IDynaEat ieat = (IDynaEat) factory.getProxy();
        ieat.eat();
        ieat.drink();
    }
}
